package com.TestHeiMa;

/**
 * @Auther: shiquan
 * @Date: 2024/10/22 - 10 - 22 -21:05
 */
public class Rectangle extends Shape{
    public Rectangle() {
    }

    private double len ;
    private double width;

    public Rectangle(double len, double width) {
        this.len = len;
        this.width = width;
    }

    public double getLen() {
        return len;
    }


    public void setLen(double len) {
        this.len = len;
    }

    public double getWidth() {
        return width;
    }

    public void setWidth(double width) {
        this.width = width;
    }

    @Override
    public double area(){
        return len*width;
    }

    @Override
    public double Perimeter() {
        return (len+width)*2;
    }


}
